<html>
  <head>

  </head>

  <body>
    ddd
  </body>

  <script>

    const wss = new WebSocket("https://p9s5xa.laf.run")

    wss.onopen = (socket) => {
      console.log("connected")
      wss.send("hi")
    };

    wss.onmessage = (res) => {
      console.log("收到了新的信息......");
      console.log(res.data);
    };

    wss.onclose = () => {
      console.log("closed");
    }


  </script>
</html>